package com.scheduled.demo;

import com.scheduled.demo.config.BaseApplicationContextInitializer;
import com.scheduled.demo.scheduled.config.SchedulerConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@Import({SchedulerConfiguration.class})
public class SpringBootScheduledExampleApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(SpringBootScheduledExampleApplication.class);
        springApplication.addInitializers(new BaseApplicationContextInitializer());
        springApplication.run(args);
    }

}
